using UnityEngine;
using System.Collections;

public class plClass : MonoBehaviour {
	
	public bool gameStopped = false;
	public globalVarsClass gv;   
	void Start () {
		gv = GameObject.Find("GlobalVariables").GetComponent<globalVarsClass>();                                 // added
		gv.playerHP = 100.0f;  
	}
	/*public void setPause(bool pause){
		if (pause){
			gameStopped = true;
		}else{
			gameStopped = false;
		}
	}*/
	
	// Update is called once per frame
	void Update () {
	//	this.gameObject.transform.position = new Vector3(this.gameObject.transform.position.x - xMove,
			//this.gameObject.transform.position.y - yMove, -1);
	
		
		
	/*	this.transform.position = new Vector3(this.transform.position.x - 0.01f,
			this.transform.position.y - 0.01f, -1);
		
		GameObject.Find("Background").transform.position = new Vector3(GameObject.Find("Background").transform.position.x - 0.01f,
			GameObject.Find("Background").transform.position.y - 0.01f, GameObject.Find("Background").transform.position.z);
		
		GameObject.Find("Main Camera").transform.position = new Vector3(GameObject.Find("Main Camera").transform.position.x - 0.01f,
			GameObject.Find("Main Camera").transform.position.y - 0.01f, GameObject.Find("Main Camera").transform.position.z);
	*/
	}
	
	/*void OnTriggerEnter(Collider collision) {
        if (collision.gameObject.name.Contains("BadGuy"))
			Destroy(collision.gameObject);
    }*/
}
